package com.ukao.steward.bean;

import com.bigkoo.pickerview.model.IPickerViewData;
import com.ukao.steward.util.CheckUtils;

import static android.os.Build.VERSION_CODES.BASE;

/**
 * Created by ukaodev on 2017/12/12.
 */

public class BlankTableBean extends BaseListBean<BlankTableBean> implements IPickerViewData {

        /**
         * val : CCB
         * sortNo : 1
         * showText : 中国建设银行
         * dicKeyId : 64
         * pid : null
         * id : 204
         * text : 中国建设银行
         */

        private String val;
        private int sortNo;
        private String showText;
        private int dicKeyId;
        private Object pid;
        private String id;
        private String text;

        public String getVal() {
            return val;
        }

        public void setVal(String val) {
            this.val = val;
        }

        public int getSortNo() {
            return sortNo;
        }

        public void setSortNo(int sortNo) {
            this.sortNo = sortNo;
        }

        public String getShowText() {
            return showText;
        }

        public void setShowText(String showText) {
            this.showText = showText;
        }

        public int getDicKeyId() {
            return dicKeyId;
        }

        public void setDicKeyId(int dicKeyId) {
            this.dicKeyId = dicKeyId;
        }

        public Object getPid() {
            return pid;
        }

        public void setPid(Object pid) {
            this.pid = pid;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }

    @Override
    public String getPickerViewText() {
        return CheckUtils.isEmptyString(getShowText());
    }
}
